﻿
namespace Forest.Lion.Domain.Models {

    using System;
    using System.ComponentModel.DataAnnotations;
using Forest.Lion.Model;
using System.Collections.Generic;
    using Forest.Lion.Domain.Services;

    public class User {
        public Guid Id { get; set; }
        [Required(ErrorMessage = "请填写公司名称")]
        [StringLength(50, ErrorMessage = "公司长度不超过50个字符")]
        public string CompanyName { get; set; }

        [Required(ErrorMessage = "请填写联系人")]
        [Display(Name = "联系人", Prompt = "Please Input Contact")]
        public string Contact { get; set; }

        [Display(Name = "联系电话")]
        [Required(ErrorMessage = "请填写联系电话")]
        [StringLength(15, ErrorMessage = "联系电话不超过15个字符")]
        public string Tel { get; set; }

        [StringLength(20, ErrorMessage = "手机号码不超过20个字符")]
        public string Mobile { get; set; }

        [Required(ErrorMessage = "请填写用户名")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "请填写密码")]
        public string Password { get; set; }

        [Required(ErrorMessage = "请填写确认密码")]
        public string RePassword { get; set; }

        /// <summary>
        /// 是否高级会员
        /// </summary>
        public bool IsVip
        {
            get 
            {
                return true;
            }
        }
    }
}
